1 module std.vita.errno; 2 version(PSVita): 3 extern(C): 4 5 // Copyright Beman Dawes 2005. 6 // Use, modification, and distribution is subject to the Boost Software 7 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at 8 // http://www.boost.org/LICENSE_1_0.txt) 9 10 // See library home page at http://www.boost.org/libs/system 11 12 13 // supply errno values likely to be missing, particularly on Windows 14 15 @nogc nothrow pure @trusted 16 { 17 int errno(){return *__errno();} 18 extern(C) extern int *__errno (); 19 } 20 21 22 enum EPERM = 1; /* Not owner */ 23 enum ENOENT = 2; /* No such file or directory */ 24 enum ESRCH = 3; /* No such process */ 25 enum EINTR = 4; /* Interrupted system call */ 26 enum EIO = 5; /* I/O error */ 27 enum ENXIO = 6; /* No such device or address */ 28 enum E2BIG = 7; /* Arg list too long */ 29 enum ENOEXEC = 8; /* Exec format error */ 30 enum EBADF = 9; /* Bad file number */ 31 enum ECHILD = 10; /* No children */ 32 enum EAGAIN = 11; /* No more processes */ 33 enum ENOMEM = 12; /* Not enough space */ 34 enum EACCES = 13; /* Permission denied */ 35 enum EFAULT = 14; /* Bad address */ 36 enum ENOTBLK = 15; /* Block device required */ 37 enum EBUSY = 16; /* Device or resource busy */ 38 enum EEXIST = 17; /* File exists */ 39 enum EXDEV = 18; /* Cross-device link */ 40 enum ENODEV = 19; /* No such device */ 41 enum ENOTDIR = 20; /* Not a directory */ 42 enum EISDIR = 21; /* Is a directory */ 43 enum EINVAL = 22; /* Invalid argument */ 44 enum ENFILE = 23; /* Too many open files in system */ 45 enum EMFILE = 24; /* File descriptor value too large */ 46 enum ENOTTY = 25; /* Not a character device */ 47 enum ETXTBSY = 26; /* Text file busy */ 48 enum EFBIG = 27; /* File too large */ 49 enum ENOSPC = 28; /* No space left on device */ 50 enum ESPIPE = 29; /* Illegal seek */ 51 enum EROFS = 30; /* Read-only file system */ 52 enum EMLINK = 31; /* Too many links */ 53 enum EPIPE = 32; /* Broken pipe */ 54 enum EDOM = 33; /* Mathematics argument out of domain of function */ 55 enum ERANGE = 34; /* Result too large */ 56 enum ENOMSG = 35; /* No message of desired type */ 57 enum EIDRM = 36; /* Identifier removed */ 58 enum EDEADLK = 45; /* deadlock */ 59 enum ENOLCK = 46; /* no lock */ 60 enum ENOSTR = 60; /* Not a stream */ 61 enum ENODATA = 61; /* No data (for no delay io) */ 62 enum ETIME = 62; /* Stream ioctl timeout */ 63 enum ENOSR = 63; /* No stream resources */ 64 enum EREMOTE = 66; /* The object is remote */ 65 enum ENOLINK = 67; /* Virtual circuit is gone */ 66 enum EPROTO = 71; /* Protocol error */ 67 enum EMULTIHOP = 74; /* Multihop attempted */ 68 enum EBADMSG = 77; /* Bad message */ 69 enum EFTYPE = 79; /* Inappropriate file type or format */ 70 enum ENOSYS = 88; /* Function not implemented */ 71 enum ENOTEMPTY = 90; /* Directory not empty */ 72 enum ENAMETOOLONG = 91; /* File or path name too long */ 73 enum ELOOP = 92; /* Too many symbolic links */ 74 enum EOPNOTSUPP = 95; /* Operation not supported on socket */ 75 enum EPFNOSUPPORT = 96; /* Protocol family not supported */ 76 enum ECONNRESET = 104; /* Connection reset by peer */ 77 enum ENOBUFS = 105; /* No buffer space available */ 78 enum EAFNOSUPPORT = 106; /* Address family not supported by protocol family */ 79 enum EPROTOTYPE = 107; /* Protocol wrong type for socket */ 80 enum ENOTSOCK = 108; /* Socket operation on non-socket */ 81 enum ENOPROTOOPT = 109; /* Protocol not available */ 82 enum ESHUTDOWN = 110; /* Can't send after socket shutdown */ 83 enum ECONNREFUSED = 111; /* Connection refused */ 84 enum EADDRINUSE = 112; /* Address already in use */ 85 enum ECONNABORTED = 113; /* Software caused connection abort */ 86 enum ENETUNREACH = 114; /* Network is unreachable */ 87 enum ENETDOWN = 115; /* Network interface is not configured */ 88 enum ETIMEDOUT = 116; /* Connection timed out */ 89 enum EHOSTDOWN = 117; /* Host is down */ 90 enum EHOSTUNREACH = 118; /* Host is unreachable */ 91 enum EINPROGRESS = 119; /* Connection already in progress */ 92 enum EALREADY = 120; /* Socket already connected */ 93 enum EDESTADDRREQ = 121; /* Destination address required */ 94 enum EMSGSIZE = 122; /* Message too long */ 95 enum EPROTONOSUPPORT = 123; /* Unknown protocol */ 96 enum ESOCKTNOSUPPORT = 124; /* Socket type not supported */ 97 enum EADDRNOTAVAIL = 125; /* Address not available */ 98 enum ENETRESET = 126; /* Connection aborted by network */ 99 enum EISCONN = 127; /* Socket is already connected */ 100 enum ENOTCONN = 128; /* Socket is not connected */ 101 enum ETOOMANYREFS = 129; 102 enum EUSERS = 131; 103 enum EDQUOT = 132; 104 enum ESTALE = 133; 105 enum ENOTSUP = 134; /* Not supported */ 106 enum EILSEQ = 138; /* Illegal byte sequence */ 107 enum EOVERFLOW = 139; /* Value too large for defined data type */ 108 enum ECANCELED = 140; /* Operation canceled */ 109 enum ENOTRECOVERABLE = 141; /* State not recoverable */ 110 enum EOWNERDEAD = 142; /* Previous owner died */ 111 enum EWOULDBLOCK = EAGAIN; /* Operation would block */ 112 113 enum __ELASTERROR = 2000; /* Users can add values starting here */